---
id: "file"
keywords: ["file"]
name: "__FILE__"
summary: "This is the `__FILE__` special value."
category: "specialvalues"
---

`__FILE__` returns the name of the file currently being parsed by the compiler.

<CodeTab labels={["ReScript", "JS Output"]}>

```res example
// testmodule.res
__FILE__->Console.log
```

```js
console.log("testmodule.res");
```

</CodeTab>
